<form action="<?php echo base_url("index.php/user/addtomodel")?>" method="post" enctype="multipart/form-data" name="loginform" id="loginform">
<input id="type" name ="type" type="hidden" value="3"/>
      <fieldset>
      <legend>Add User Infomation</legend>
      <table class="nostyle">
        <tr>
          <td style="width:120px;">UserName:</td>
          <td><input type="text" name="username" id="username"  /></td>
        </tr>
        <tr>
          <td style="width:120px;">PassWord:</td>
          <td><input name="password" type="text" id="password" /></td>
        </tr>
		<tr>
          <td style="width:120px;">Grade:</td>
          <td>
          <select name="grade" id="grade" class="input-text"  >
            <option value="0">普通员工</option>
            <option value="1">高级员</option>
            <option value="4">管理员</option>
		  </select>          </td>
        </tr>
        <tr>
          <td style="width:120px;">Department:</td>
          <td> <select name="person" id="person" >
            <option value="1">Department1</option>
            <option value="2">Department2</option>
            <option value="3">Department3</option>
			<option value="4">Department4</option>
		  </select></td>
        </tr>
		<tr>
          <td style="width:120px;">Position:</td>
          <td><input type="text" id="post" name="post" /></td>
        </tr>
 		<tr>
          <td style="width:120px;">Age:</td>
          <td style="width:120px;"><input type="text" id="age" name="age"  /></td>
        </tr>
		<tr>
          <td style="width:120px;">Phone:</td>
          <td><input type="text" id="phone" name="phone"  /></td>
        </tr>
		<tr>
          <td style="width:120px;">Email:</td>
          <td><input name="email" type="text" id="email" /></td>
        </tr>
		<tr>
          <td style="width:120px;">Pic</td>
          <td><input name="pic" type="file" id="pic" /></td>
        </tr> 
        <tr>
          <td colspan="2" class="t-right"><input type="submit" class="input-submit" value="Commit" /></td>
        </tr>
      </table>
      </fieldset>

</form>
